// pages/personal/logisticsprogress/logisticsprogress.js
var utils = require('../../../utils/util.js');
var app = getApp();
Page({

    /**
     * 页面的初始数据
     */
    data: {

    },

    /**
     * 生命周期函数--监听页面加载
     */
    onLoad: function (options) {
        var that=this;
        that.logisTap(options.orderid);
    },

    logisTap: function (orderid){
        var that=this;
        utils.showLoading();
        utils.http("/api/v1/common/get_order_logistics", { order_id:orderid},function(res){
            utils.hideLoading();
            if(res.state==1){
                that.setData({
                    data: res.datas
                })
            }else{
                utils.message(res.datas)
            }
           
        })
    }

    
})